// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import store from '@/store'
import router from './router'

import animated from 'animate.css'
Vue.use(animated)

import "./utils/eventbus"

// 引入Element组件库
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

//引入axios用于请求api（此处设置，属于全局，项目内其他地方可使用）
import axios from 'axios'
import VueAxios from 'vue-axios'
import api from '@/api/index'
Vue.prototype.$api = api

Vue.use(VueAxios, axios)

Vue.config.productionTip = false

import VuePageTransition from 'vue-page-transition'

Vue.use(VuePageTransition)


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
